/*
 * Copyright (c) 2005 -2008 Reliable Source, Inc. and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Mozilla Public License v.1.1,
 * BSD, and Eclipse Public License v1.0 which accompanies this
 * distribution and is available at:
 *
 * 		http://www.eclipse.org/legal/epl-v10.html
 * 		http://www.opensource.org/licenses/bsd-license.php
 * 		http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * Contributors:
 *     IBM Corporation	     -  http://ibm.com
 *     	- initial API and implementation
 *
 *     patientos.org         - http://patientos.org
 *     	- domain and database persistence layer
 *
 *     Reliable Source, Inc. - http://reliablesource.org
 *     	- Symbiosys Application Framework,
 *     	- Symbiosys Application, Symbiosys Product
 *
 */
package org.reliablesource.symbiosys.ui.tests.adapters;

import org.eclipse.ui.tests.harness.util.UITestCase;

import org.reliablesource.client.ui.symbiosys.platform.SymbiosysElementAdapterFactory;


/**
 *
 * ReliableElementObjectAdapterFactoryTest.java<br>
 * Created on: Dec 3, 2006<br>
 *
 * @author <a href="mailto:dennis.park@gmail.com">Dennis Park</a>
 *
 * @category
 * @since 1.0
 */
public class ReliableElementObjectAdapterFactoryTest extends UITestCase {
    SymbiosysElementAdapterFactory factory;

    /**
     * @param testName
     * @category constructor
     */
    public ReliableElementObjectAdapterFactoryTest(String testName) {
        super(testName);
    }

    /*
     * (non-Javadoc)
     *
     * @see org.eclipse.ui.tests.harness.util.UITestCase#doSetUp()
     */
    @Override
    protected void doSetUp() throws Exception {
        super.doSetUp();
        factory = SymbiosysElementAdapterFactory.getInstance();
    }

    /*
     * (non-Javadoc)
     *
     * @see org.eclipse.ui.tests.harness.util.UITestCase#doTearDown()
     */
    @Override
    protected void doTearDown() throws Exception {
        factory = null;
        super.doTearDown();
    }

    //	public void testGetIEditorInputAdapter() {
    //		Object toAdapt = new Object();
    //		CMPObjEditorAdapter adapter = (CMPObjEditorAdapter) factory.getAdapter(
    //				toAdapt, IEditorInput.class);
    //
    //		assertNotNull("Adapter is null", adapter);
    //
    //		Object toAdapt2 = new Object();
    //		CMPObjEditorAdapter adapter2 = (CMPObjEditorAdapter) factory
    //				.getAdapter(toAdapt2, IEditorInput.class);
    //
    //		assertNotNull("Adapter 2  is null", adapter2);
    //
    //		assertNotSame("Adapter references are the same", adapter, adapter2);
    //
    //		assertSame("Adapter references for object 1 are not the same", adapter,
    //				(CMPObjEditorAdapter) factory.getAdapter(toAdapt,
    //						IEditorInput.class));
    //
    //		assertSame("Adapter references for object 2 are not the same",
    //				adapter2, (CMPObjEditorAdapter) factory.getAdapter(toAdapt2,
    //						IEditorInput.class));
    //	}
}
